package testst;
class ListNode{
	public int val;
}
public class TestTryCatch {
	public boolean test1(){
		boolean b = true;
		try {
			System.out.println("in try");
			return b;
		} finally{
			b = false;
			System.out.println("in finally , b:"+b);
			
		}
	}
	
	public int test2(){
		int b = 0;
		try {
			throw new Exception();
		} catch (Exception e) {
			++b;
			System.out.println("in catch , b:"+b);
			return b;
		}
		finally{
			++b;
			System.out.println("in finally, b:"+b);
			//return b;
		}
	}
	public static int test3(){
		try{}
		finally{
			return 1;
		}
	}
	public static void main(String[] args){
		TestTryCatch testTryCatch = new TestTryCatch();
		System.out.println(testTryCatch.test1());
	}
}
